-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add VirtualColumn and VirtualRow docs #4845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for react-native ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
|
||
| ### Item Rendering | ||
|
|
||
| `VirtualColumn` expects an immutable `VirtualCollection` of items and an `itemsToKey` function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `VirtualColumn` expects an immutable `VirtualCollection` of items and an `itemsToKey` function. | |
| `VirtualColumn` expects an immutable `VirtualCollection` of items and an `itemToKey` function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doc sometimes uses both itemsToKey and itemToKey, I assume that only one is correct.
|
|
||
| `VirtualColumn` expects an immutable `VirtualCollection` of items and an `itemsToKey` function. | ||
|
|
||
| When `VirtualColumn` renders an item, it calls the `children` render function once and memoizes the result. If an item changes, a new item should be provided with the same key. Items with identical keys, as returned by `itemsToKey`, will update the same React element. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto: itemToKey
Add VirtualColumn and VirtualRow docs
See VirtualColumn docs
See VirtualRow docs